package com.sefon.smarteconomy.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.sefon.smarteconomy.domain.ClientsAnalyze;

/**
 * 
* Copyright: Copyright (c) 2018 SefonSoft
* 
* @ClassName: IClientsAnalyzeDao.java
* @Description: 客户群分析dao接口
*
* @version: v1.0.0
* @author: SF2170
* @date: 2018/03/26 22:07:28
* @by AnalysisExcel2File.java
*
 */
@Repository
public interface IClientsAnalyzeDao extends JpaRepository<ClientsAnalyze, String>{

	/**
	 * 
	* @Description: 根据id查询客户群分析
	*
	* @param id
	* @return
	*
	* @version: v1.0.0
	* @author: SF2170
	* @date: 2018年03月26日
	*
	* Modification History:
	* Date         Author          Version            Description
	*---------------------------------------------------------*
	* 2018年03月26日             SF2170           v1.0.0            
	 */
	@Query(value="select * from clients_analyze where id = ?1 ",nativeQuery=true)
	ClientsAnalyze findOneById(@Param(value="id")String id);
	
}
